<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
//定膽樣版
$arrCon = file($strTemplatePath."NumberTemplate5163.html");
$strCon5163 = join("", $arrCon);
$strCon5163 = str_replace(chr(13), "", $strCon5163);
$strCon5163 = str_replace(chr(10), "", $strCon5163);

//雙飛定位樣版
$arrCon = file($strTemplatePath."NumberTemplate6467.html");
$strCon6467 = join("", $arrCon);
$strCon6467 = str_replace(chr(13), "", $strCon6467);
$strCon6467 = str_replace(chr(10), "", $strCon6467);

//組 3 轉直樣版
$arrCon = file($strTemplatePath."NumberTemplate6872.html");
$strCon6872 = join("", $arrCon);
$strCon6872 = str_replace(chr(13), "", $strCon6872);
$strCon6872 = str_replace(chr(10), "", $strCon6872);

//組 6 轉直樣版
$arrCon = file($strTemplatePath."NumberTemplate7377.html");
$strCon7377 = join("", $arrCon);
$strCon7377 = str_replace(chr(13), "", $strCon7377);
$strCon7377 = str_replace(chr(10), "", $strCon7377);

//3x3x3樣版
$arrCon = file($strTemplatePath."NumberTemplate7882.html");
$strCon7882 = join("", $arrCon);
$strCon7882 = str_replace(chr(13), "", $strCon7882);
$strCon7882 = str_replace(chr(10), "", $strCon7882);

//跨度 過關 樣版
$arrCon = file($strTemplatePath."NumberTemplate8790.html");
$strCon8790 = join("", $arrCon);
$strCon8790 = str_replace(chr(13), "", $strCon8790);
$strCon8790 = str_replace(chr(10), "", $strCon8790);

//三定位 樣版
$arrCon = file($strTemplatePath."NumberTemplate92.html");
$strCon92 = join("", $arrCon);
$strCon92 = str_replace(chr(13), "", $strCon92);
$strCon92 = str_replace(chr(10), "", $strCon92);

//三字 樣版
$arrCon = file($strTemplatePath."NumberTemplate93.html");
$strCon93 = join("", $arrCon);
$strCon93 = str_replace(chr(13), "", $strCon93);
$strCon93 = str_replace(chr(10), "", $strCon93);

//已開獎樣版
$arrCon = file($strTemplatePath."StartGameTemplate.html");
$strConSG = join("", $arrCon);
$strConSG = str_replace(chr(13), "", $strConSG);
$strConSG = str_replace(chr(10), "", $strConSG);
foreach($_strOperate3D as $k => $v){
	$strCon5163 = str_replace("{".$k."}", $v, $strCon5163);
	$strCon6467 = str_replace("{".$k."}", $v, $strCon6467);
	$strCon6872 = str_replace("{".$k."}", $v, $strCon6872);
	$strCon7377 = str_replace("{".$k."}", $v, $strCon7377);
	$strCon7882 = str_replace("{".$k."}", $v, $strCon7882);
	$strCon8790 = str_replace("{".$k."}", $v, $strCon8790);
	$strCon92 = str_replace("{".$k."}", $v, $strCon92);
	$strCon93 = str_replace("{".$k."}", $v, $strCon93);
	$strConSG = str_replace("{".$k."}", $v, $strConSG);
}

$strCon = "var strLayer5163=\"".addslashes($strCon5163)."\";\n";
$strCon .= "var strLayer6467=\"".addslashes($strCon6467)."\";\n";
$strCon .= "var strLayer6872=\"".addslashes($strCon6872)."\";\n";
$strCon .= "var strLayer7377=\"".addslashes($strCon7377)."\";\n";
$strCon .= "var strLayer7882=\"".addslashes($strCon7882)."\";\n";
$strCon .= "var strLayer8790=\"".addslashes($strCon8790)."\";\n";
$strCon .= "var strLayer92=\"".addslashes($strCon92)."\";\n";
$strCon .= "var strLayer93=\"".addslashes($strCon93)."\";\n";
$strCon .= "var strLayerStart=\"".addslashes($strConSG)."\";\n";

$strFile = __Root_Path."/inc/OperateTemp3D".$_intLang.".js";
if(!writeFile($strFile, $strCon, "w"))ErrMsgOutputHTML("Error", "", 1);
?>